package STUDENT.TranMinhVu.OOPS.ArrayExercises.BaiTapQuanLySachThuVien;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class Test {
	public static void main(String[] args) {
		List<Sach> booklist = new ArrayList<Sach>();
		List<BangQLMuonSach> dsbql = new ArrayList<BangQLMuonSach>();
		BangQLMuonSach bql1 = new BangQLMuonSach();
		BangQLMuonSach bql2 = new BangQLMuonSach();
		
		dsbql.add(bql1);
		
		dsbql.add(bql2);
		bql1.setSodausach(2);
		System.out.println(bql1.getSodausach());
		int[] masachmuon1 = new int[bql1.getSodausach()];
		for(int i=0;i<bql1.getSodausach();i++){
			masachmuon1[i]=i;
		//	bql1.getMasachmuon()[i]=i;
		}
		System.out.println(masachmuon1[1] + " "+masachmuon1[0]);
		bql1.setMasachmuon(masachmuon1);
		//booklist.add(new Sach(2, "adfd", "acgia", 3, "huyennganh"));
		//booklist.add(new Sach(3, "tensach", "tacgia", 23, "chuyen"));
		
		for (int i = 0; i<bql1.getSodausach(); i++){
			System.out.println(bql1.getMasachmuon()[i]);
		}
	}
}
